package demo.blog.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
public class Comment implements Serializable {
    private Integer id;

    private Integer articleId;

    private Integer userId;

    private Boolean isAuthor;
    /*@NotEmpty(message = "评论内容不能为空！")*/
    private String content;

    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createDate;

    private User user;
}